package com.muyu.chat.service;

import com.muyu.chat.doamin.ChatMessage;
import org.springframework.web.multipart.MultipartFile;
import java.util.Map;


/**
 *  聊天
 * yangle
 * */

public interface MessageService {

    Map<String,Object> getChatMessage(Long sendUserId,Long acceptUserId, int pageNum, int pageSize);

    Map<String,Object> sendMsg(ChatMessage chatMessage);

    Map<String,Object> sendFileMsg(Long sendUserId, Long acceptUserId, String type, Integer time, MultipartFile file);

    Map<String,Object> getFriendMsgList(Long userId,int pageNum,int pageSize);

    Boolean readedMsg(Long sendUserId,Long acceptUserId);

    int getAllNoReadMsgNum(Long acceptUserId);


}
